package com.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.common.base.persistence.BaseMapper;
import com.common.base.persistence.MyBatisRepository;
import com.system.vo.SysMenuVO;


@MyBatisRepository
public interface SysMenuMapper extends BaseMapper<SysMenuVO>{
	public List<SysMenuVO> findAllChildrenMenu(List<String> menu_ids);//查询所有子菜单
	public List<SysMenuVO> findMenusByMenuIds(List<String> menuIds);

	public List<SysMenuVO> findAllMenu();//查询所有的资源菜单

	public void createMenu(List<SysMenuVO> sysMenuVOs);//创建资源菜单

	public void deleteMenuById(List<SysMenuVO> sysMenuVOs);//根据ID删除呢Menu

	public void updateMenus(List<SysMenuVO> sysMenuVOs);//修改菜单内容

	public List<SysMenuVO>findNextSysMenuVOsByIds(List<String> menu_ids);//根据菜单ID查找菜单及其子菜单资源
	
	public void deleteRoleAndMenuByID(@Param("menuId") String menuId);//根据菜单ID删除角色菜单表记录
}
